﻿using ProjectManageSystemApi.Models;
using ProjectManageSystemApi.Models.WorkerType;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ProjectManageSystemApi.Services
{
    public interface IWorkerTypeInfoServices
    {
        bool Add(WorkerTypeInfoDto workerType);
        bool Update(WorkerTypeInfoDto workerType);
        bool Delete(uint id);
        PageVo<List<WorkerTypeInfoDto>> Query(PageBo<WorkerTypeParams> pageBo);
        bool ExistById(ulong id);
        bool ExistByName(string name, ulong id = 0);
    }
}
